<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>医院测算</title>
<link href="<%=request.getContextPath()%>/css/forecast.css"
	rel="stylesheet">
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/yizheng/quotaComputer/yizhengForecastResultTable.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/yizheng/quotaComputer/yizhengForecast.js"></script>
</head>
<body>
	<div class="container-fluid">
		<!-- <h4 class="main-title">医院测算</h4> -->
		<div class="row">
			<div id="date_div" class="col-xs-offset-3  date_div">
				<img id="search_png" src="images/co_search.png"
					click="conditionChange()"> <label for="sdate">&nbsp;&nbsp;开始月份:</label>
				<input id="sdate" type="text" class="form-control"> <label
					for="edate">&nbsp;&nbsp;截止月份:</label> <input id="edate"
					type="text" class="form-control">
			</div>
		</div>
		<div class="row rowhcq">
			<div class="boxcq clearfix">
				<div class="ti">
					<i class="fa fa-hand-o-up"></i>预算数据(<span id="date-from"></span>~<span
						id="date-to"></span>)
				</div>
				<ul class="nav nav-tabs boxnavcq" role="tablist"></ul>
				<div class="clearfix"></div>
				<div class="tab-content" style="padding: 0;">
					<table id="foredata-table" class="table table-hover table-bordered">
						<thead>
							<tr>
								<td rowspan="2" width="120">类型</td>
								<td rowspan="2">出院病例数</td>
								<td colspan="2">平均住院日</td>
								<td colspan="2">次均费用(元)</td>
								<td colspan="2">次均药费(元)</td>
								<td colspan="2">次均药耗费(元)</td>
							</tr>
							<tr>
								<td>实际值</td>
								<td>标杆值</td>
								<td>实际值</td>
								<td>标杆值</td>
								<td>实际值</td>
								<td>标杆值</td>
								<td>实际值</td>
								<td>标杆值</td>
							</tr>
						</thead>
						<tbody></tbody>
					</table>
				</div>
			</div>
			<p class="text-muted">注：测算数据均采用入组病例</p>
		</div>

		<div class="row rowhcq">
			<div class="boxcq clearfix">
				<div class="ti">
					<i class="fa fa-pencil-square-o"></i>参数输入--科室组
				</div>
				<ul class="nav nav-tabs boxnavcq" role="tablist"></ul>
				<div class="clearfix"></div>
				<div class="tab-content">
					<div class="form-horizontal well">
						<div class="form-group">
							<label for="mrYear" class="col-sm-1 control-label">预测年份:</label>
							<div class="col-sm-11">
								<input id="forecastYear" />
							</div>
						</div>
						<!-- <div style="float:right; position: relative">选择测算:<input id="forecastName" name="drgCode" style="width: 80px"/><button id="forecastNameOk">OK</button></div> -->
						<div class="form-group" style="margin-bottom: 0;">
							<label for="paramQuotaCheck" class="col-sm-1 control-label">批量修改:</label>
							<div class="col-sm-11">
								<select id="paramQuotaCheck"
									class="form-control inline-input-wt" style="width: 147px;">
									<option value="AvgDays" selected="selected">平均住院日</option>
									<option value="AvgFee">次均费用(元)</option>
									<option value="AvgDrugFee">次均药费(元)</option>
									<option value="AvgDrugMateFee">次均药耗费(元)</option>
								</select>

								<div class="input-group inline-input-wt">
									<div class="input-group-addon">低于标杆</div>
									<input type="text" class="form-control" id="overManageID"
										value="0">
								</div>
								<div class="input-group inline-input-wt">
									<div class="input-group-addon">高于标杆</div>
									<input type="text" class="form-control" id="notOverManageID"
										value="0">
								</div>

								<input class="icheck" type="radio" name="checkAll" checked
									value="1" id="checkAll1"> <label for="checkAll1">修改全部</label>
								<input class="icheck" type="radio" name="checkAll" value="0"
									id="checkAll0"> <label for="checkAll0">修改选中</label>
								<button id="mergeParamOk" type="button" class="btn btn-primary">OK</button>
							</div>
						</div>
					</div>

					<div id="paramDepGroup" class="tablehead ">
						<table id="paramDepGroup-table"
							class="table table-hover table-bordered">
							<thead>
								<tr>
									<td rowspan="2" width="120">科室组</td>
									<td rowspan="2">出院病例数</td>
									<td colspan="2">平均住院日</td>
									<td colspan="2">次均费用(元)</td>
									<td colspan="2">次均药费(元)</td>
									<td colspan="2">次均药耗费(元)</td>

									<!-- <td rowspan="2">病种设置</td> -->
								</tr>
								<tr>
									<td>低于标杆</td>
									<td>高于标杆</td>
									<td>低于标杆</td>
									<td>高于标杆</td>
									<td>低于标杆</td>
									<td>高于标杆</td>
									<td>低于标杆</td>
									<td>高于标杆</td>
								</tr>
							</thead>
							<tbody></tbody>
						</table>
					</div>

					<table id="processId" width="70%"
						style="float: left; margin-top: 10px;display:none;">
						<tr>
							<td width="">正在测算：<span id="processInfo" style="color: red;"></span></td>
						</tr>
					</table>
					<button id="calculate_btn"
						style="margin-top: 10px; margin-bottom: 10px;"
						class="btn btn-success  pull-right">点击测算</button>
				</div>
			</div>
			<div class="col-xs-8">
				<p class="text-muted">注：1.以上参数均应用于科室组下科室病种的调整； 2.输入框中的值为要下调的百分点值</p>
			</div>
		</div>
		<div class="row rowhcq">
			<div class="boxcq clearfix">
				<div class="ti">
					<i class="fa fa-rocket"></i>预测结果
				</div>
				<ul class="nav nav-tabs boxnavcq" role="tablist">
					<li class="active"><a class="tabActive" href="#hospResult"
						role="tab" data-toggle="tab">全院</a></li>
					<li><a href="#depGroupResult" role="tab" data-toggle="tab">科室组</a>
					</li>
					<li><a href="#depResult" role="tab" data-toggle="tab">科室</a></li>
				</ul>
				<div class="clearfix"></div>
				<div class="tab-content">
					<div role="tabpanel" class="tab-pane fade active in"
						id="hospResult">
						<div class="row">
							<div class="col-md-3">
								<div class="title">平均住院日</div>
								<table id="hospAvgDays" class="table-card">
									<tr style="display: none">
										<td colspan="2"></td>
									</tr>
									<tr>
										<td rowspan="2" width="50%" class="editClass">
										
										</td>
										<td></td>
									</tr>
									<tr>
										<td width="50%"></td>
									</tr>
									<tr style="display: none">
										<td></td>
									</tr>
								</table>
							</div>
							<div class="col-md-3">
								<div class="title">次均费用(元)</div>
								<table id="hospAvgFee" class="table-card">
									<tr style="display: none">
										<td colspan="2"></td>
									</tr>
									<tr>
										<td rowspan="2" td width="50%" class="editClass"></td>
										<td></td>
									</tr>
									<tr>
										<td width="50%"></td>
									</tr>
									<tr style="display: none">
										<td></td>
									</tr>
								</table>
							</div>
							<div class="col-md-3">
								<div class="title">次均药费(元)</div>
								<table id="hospAvgDrugFee" class="table-card">
									<tr style="display: none">
										<td colspan="2"></td>
									</tr>
									<tr>
										<td rowspan="2" width="50%" class="editClass"></td>
										<td></td>
									</tr>
									<tr>
										<td width="50%"></td>
									</tr>
									<tr style="display: none">
										<td></td>
									</tr>
								</table>
							</div>
							<div class="col-md-3">
								<div class="title">出院病例数</div>
								<table id="hospTotalCaseCnt" class="table-card">
									<tr style="display: none">
										<td colspan="2"></td>
									</tr>
									<tr>
										<td rowspan="2" width="50%" class="editClass"></td>
										<td></td>
									</tr>
									<tr>
										<td width="50%"></td>
									</tr>
									<tr style="display: none">
										<td></td>
									</tr>
								</table>
							</div>

							<div class="col-md-3">
								<div class="title">时间消耗指数</div>
								<table id="hospTimeEff" class="table-card">
									<tr style="display: none">
										<td colspan="2"></td>
									</tr>
									<tr>
										<td rowspan="2" width="50%" class="editClass"></td>
										<td></td>
									</tr>
									<tr>
										<td width="50%"></td>
									</tr>
									<tr style="display: none">
										<td></td>
									</tr>
								</table>
							</div>
							<div class="col-md-3">
								<div class="title">费用消耗指数</div>
								<table id="hospFeeEff" class="table-card">
									<tr style="display: none">
										<td colspan="2"></td>
									</tr>
									<tr>
										<td rowspan="2" width="50%" class="editClass"></td>
										<td></td>
									</tr>
									<tr>
										<td width="50%"></td>
									</tr>
									<tr style="display: none">
										<td></td>
									</tr>
								</table>
							</div>
							<div class="col-md-3">
								<div class="title">次均药耗费(元)</div>
								<table id="hospAvgDrugMateFee" class="table-card">
									<tr style="display: none">
										<td colspan="2"></td>
									</tr>
									<tr>
										<td rowspan="2" width="50%" class="editClass"></td>
										<td></td>
									</tr>
									<tr>
										<td width="50%"></td>
									</tr>
									<tr style="display: none">
										<td></td>
									</tr>
								</table>
							</div>
							<div class="col-md-3">
								<div class="title">CMI</div>
								<table id="hospCMI" class="table-card">
									<tr style="display: none">
										<td colspan="2"></td>
									</tr>
									<tr>
										<td rowspan="2" width="50%" class="editClass"></td>
										<td></td>
									</tr>
									<tr>
										<td width="50%"></td>
									</tr>
									<tr style="display: none">
										<td></td>
									</tr>
								</table>
							</div>
						</div>
						<div class="row">
							<button class="btn btn-success" id="saveHosp_btn"
								style="margin-top: 10px; float: right; margin-right: 10px;">保存</button>
						</div>

					</div>

					<div role="tabpanel" class="tab-pane fade in" id="depGroupResult">
							<table id="resultDepGroup-table" class="table display nowrap"
								style="width: 100%;"></table>
							<button class="btn btn-success" id="saveDepGroup_btn"
								style="margin-top: 10px; float: right; margin-right: 10px;margin-bottom: 10px;">保存</button>
					</div>
					<div role="tabpanel" class="tab-pane fade in" id="depResult">
							<table id="resultDep-table" class="table display nowrap"
								style="width: 100%; border: seashell;" border=1></table>
							<button class="btn btn-success" id="saveDep_btn"
								style="margin-top: 10px; float: right; margin-right: 10px;margin-bottom: 10px;">保存</button>
					</div>
				</div>
			</div>
		</div>
	</div>
	<script type="text/javascript">
$(document).ready(function(){
  $('input.icheck').iCheck({
    checkboxClass: 'icheckbox_square-blue',
    radioClass: 'iradio_square-blue',
    increaseArea: '20%' // optional
  });
});
</script>
</body>
</html>